package com.pro.service.imple;

import com.pro.dao.CourseOrderMapper;
import com.pro.entity.Course;
import com.pro.entity.CourseOrderPlus;
import com.pro.service.CourseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：刘弘禹
 * @description：TODO
 * @date ：2021/11/14 19:25
 */
@Service
public class CourseOrderServiceImple implements CourseOrderService {
    @Autowired
    private CourseOrderMapper courseOrderMapper;

    @Override
    public List<CourseOrderPlus> queryCourse(CourseOrderPlus courseOrderPlus) {
        List<CourseOrderPlus> courseOrderPluses = courseOrderMapper.queryCourse(courseOrderPlus);
        return courseOrderPluses;
    }

    @Override
    public Course getCourse(Integer id) {
        Course course = courseOrderMapper.getCourse(id);
        return course;
    }
}
